using System;
using System.Runtime.InteropServices;

namespace bOS.Crypto
{
	public class XOR256Stream
	{
		public XOR256Stream()
		{
			//
			// TODO: aggiungere qui la logica del costruttore
			//
		}

		[ DllImport( "bOS.dll", EntryPoint="XOR256Stream_EncryptFile" )]
		public static extern int EncryptFile(String sKey, String sFileIn, String sFileOut);

		[ DllImport( "bOS.dll", EntryPoint="XOR256Stream_DecryptFile" )]
		public static extern int DecryptFile(String sKey, String sFileIn, String sFileOut);

		[ DllImport( "bOS.dll", EntryPoint="XOR256Stream_Encrypt" )]
		public static extern String EncryptString(String sKey, String sStringIn);

		[ DllImport( "bOS.dll", EntryPoint="XOR256Stream_Decrypt" )]
		public static extern String DecryptString(String sKey, String sStringIn);
	}
}
